Skip to content

Conversation

@donald
Copy link
Contributor

The current code applies a RLIMIT_CPU limit to jobs with job_threads == i. This is incorrect, as such jobs can still get more processors if they require more server slots because of their memory demands.

Since mxqd can now monitor and reliably kill jobs that exceed their allowed runtime, this code is obsolete and no longer useful.

There is no reason to fix this code, so remove it entirely.

Fixes #165

The current code applies a RLIMIT_CPU limit to jobs with `job_threads == i`.
This is incorrect, as such jobs can still get more processors if they
require more server slots because of their memory demands.

Since mxqd can now monitor and reliably kill jobs that exceed their
allowed runtime, this code is obsolete and no longer useful.

There is no reason to fix this code, so remove it entirely.
@donald Donald Buczek (donald) merged commit d83d4bf into master Sep 11, 2024
Sign in to join this conversation on GitHub.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

MXQ may wrongly apply RLIMIT_CPU which can cause a job to receive SIGXCPU long before the requested job_time timeout

1 participant